<?php
/* @var $this NewsController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'文件下载',
);
?>

<h1>
<?php 
    if(isset($show_title)&& !empty($show_title)) 
        echo $show_title;
    else  
        echo "所有文件";
?>
</h1>


<div style="float:left;width:700px;">

<div class="view">
    <div style="height:17px;line-height:17px">
        <div style="float: left;width:320px;">
            <b>文件名称</b>
    	</div>
    	<div style="float: left;width:100px;">
    	   <b>文件大小</b>
    	</div>
    	<div style="float: left;width:100px;">
    	   <b>下载次数</b>
    	</div>
    	<div style="float: left;width:100px;">
    	   <b>上传时间</b>
    	</div>
    	<!--  
    	<div style="float: left;">
    	   <b>下载</b>
    	</div>
    	-->
    </div>
</div>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
    'template'=>'<div class="list">{items}</div>
        <div class="summary" style="float:left">{summary}</div>
        <div class="pager" style="float:right:">{pager}</div>',
    'summaryText'=>'共{count}条，当前页显示第{start}-{end}条',
)); ?>
</div>

<div style="float:left;margin-left:10px;width:200px;background: #EFFDFF;" class="portlet">
    <div class="portlet-decoration">
        <div class="portlet-title">文件类别</div>
    </div>
    <div style="margin-top: 5px;margin-left:5px;">
        <ul class="operations">
        <?php
        foreach($file_type_list as $_key=>$_value){
             echo "<li>",CHtml::link($_value['type_name'],array("file/index","file_type"=>$_value['type_id'])),"</li>";
        }
        ?>
       </ul>
    </div>
</div>
